NetworkPacketCapture
NetworkPacketCapture[] creates a temporary interactive interface for capturing information on network packets transmitted or received through all network interfaces on your computer.
NetworkPacketCapture[service] captures only packets associated with the specified network service.
NetworkPacketCapture[port] captures only packets associated with the specified port.
NetworkPacketCapture[spec] captures only packets matching the specification spec.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.